package com.zking.ssm.service.impl;

import com.zking.ssm.mapper.CategoryMapper;
import com.zking.ssm.model.Category;
import com.zking.ssm.service.ICategoryService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class CategoryServiceImpl implements ICategoryService {

    @Resource
    private CategoryMapper categoryMapper;

    @Override
    public List<Category> listCategory(Category category) {
        return categoryMapper.listCategory(category);
    }
}
